<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColPlanNumToPlanTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('plan', function (Blueprint $table) {
            $table->integer('plan_num')->default(0)->comment('计划人数')->after('id');
            $table->integer('banner_img_id')->default(0)->comment('banner图id')->after('id');
            $table->string('banner_link')->nullable()->comment('banner链接')->after('id');
            $table->integer('video_id')->default(0)->comment('视频id')->after('id');
            $table->string('desc')->nullable()->comment('描述内容')->after('id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
